home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
FORTH
/
FORTHMAC
/
OLD
/
TOOLS1
/
!Forthmacs.lib.blktools
< prev
next >
Wrap
Text File
|
1996-06-11
|
520b
|
17 lines
\ Some F83 BLOCK management tools
forth definitions
nuser block-source 0 block-source !
: !files (s fcb -- ) dup block-fid ! block-source ! ;
: default (s -- ) 0 !files ;
: file? (s -- ) block-fid @ .file ;
: switch (s -- )
block-fid @
block-source @ block-fid !
block-source ! ;
: capacity (s -- n ) block-fid @ file-size s>d b/buf um/mod nip ;
: in-block (s n -- a ) block-source @ file-block ;
: use-file (s str -- ) [ sys ] open-block-file !files ;
: using (s -- ) blword use-file ; \ filename